add

fun <I : T> add(kClass: KClass<I>, handler: StatesHandler<I, T>)
fun <I : T> add(filter: suspend (state: State) -> Boolean, handler: StatesHandler<I, T>)